package com.blb.eduadservice.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.blb.common.entity.PromotionAd;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface AdDao extends BaseMapper<PromotionAd> {

    /**
     * 按区域id查询广告
     * @param sid
     * @return
     */
    List<PromotionAd> getAdsBySpaceId(@Param("space_id") Integer sid);
}
